/**
 * 一个数组遍历练习
 */

function a(list:Array<number>){
    list.forEach(num => {
        console.log(num);
        alert(num);
    });
}
let list:number[] = [1,23,4,5,6,75,3];
function aa(list){
    for (let num of list) {
        console.log(num);
        document.body.innerHTML=num;
    }
}
aa(list);